package com.zhangbo.Controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zhangbo.bean.Goods;
import com.zhangbo.service.GoodsService;
import com.zhangbo.utils.GoodsUtils;


@Controller
public class GoodsController {

	@Autowired
	GoodsService ser;
	
	@RequestMapping("list")
	public String getList(Model Model,GoodsUtils goods) {
		List<Goods> list = ser.getList(goods);
		Model.addAttribute("list", list);
		
		return "list";
	};
}
